<?php
header("content-type:text/html;charset=utf-8");
$pdo=new PDO("mysql:host=127.0.0.1;dbname=tianshl_ae","root","root");
$data=$pdo->query("select * from test1");
?>
<table border="1">
    <tr>
        <td>ID</td>
        <td>小说标题</td>
        <td>内容页链接</td>
        <td>简介</td>
        <td>类型</td>
        <td>作者</td>
    </tr>
    <?php foreach ($data as $key => $v): ?>
        <tr>
            <td><?php echo $v['id'];?></td>
            <td><?php echo $v['luj'];?></td>
            <td><?php echo $v['title'];?></td>
            <td style="width: 800px;"><?php echo $v['test_a'];?></td>
            <td><?php echo $v['stru'];?></td>
            <td><?php echo $v['zuoze'];?></td>
        </tr>
    <?php endforeach ?>
</table>